package arcade.behaviors;

import arcade.Behavior;
import arcade.units.Unit;

public class Move extends Behavior {

	private Unit myModel;

	public Move(String role, Unit model) {
		super(role);
		myModel = model;
	}

	@Override
	public void step() {
		if (myModel != null)
			myModel.translate(myModel.getVelocity().getXChange(), myModel
					.getVelocity().getYChange());
	}

}
